import { BaseErr } from "utils";
function auth() {
    return async (ctx: any, next: () => void) => {
        return new Promise((resolve) => {
            console.log("这里执行了么");
            // TODO jwt 要检查
            throw new BaseErr(401, "授权失效");
        });
    };
}

export { auth };
